//
//  TitleTableViewCell.m
//  UIHomeWork10 - 易车
//
//  Created by tusm on 16/7/27.
//  Copyright © 2016年 tusm. All rights reserved.
//

#import "TitleTableViewCell.h"
#import "ModelOfTitleCell.h"

@implementation TitleTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _label                 = [[UILabel alloc] initWithFrame:CGRectZero];
        _label.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_label];
        _PicImageView          = [[UIImageView alloc] initWithFrame:CGRectZero];
        _PicImageView.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_PicImageView];
    }

    return self;
}
- (void)layoutSubviews{

    [super layoutSubviews];
    _label.frame = CGRectMake(180,30,200,40);
    _PicImageView.frame = CGRectMake(10, 10, 150, 80);

}
//set方法
- (void)setModelOfTitleCell:(ModelOfTitleCell *)modelOfTitleCell{
    _modelOfTitleCell = modelOfTitleCell;
    _label.text = modelOfTitleCell.labelStr;
    _PicImageView.image = [UIImage imageNamed:modelOfTitleCell.imageStr];

}









- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
